<template>
  <div class="pt-20">
    <div class="w100 p-all-20 rowsb rowsm bgff br-16 mb-20" v-for="(item,index) in list" :key="index" @click="choseItem(item)">
            <div class="rowscl">
                <div class="fs-16 fw-b col333 mb-6" v-if="item.name">{{item.name}}</div>
                <div class="fs-16 fw-b col333 mb-6" v-else>{{index == 1 ? '基础劳动' : index == 2 ? '劳动总结报告' : index == 3 ? '社会公益劳动' : '劳动成果'}}</div>
                <div class="fs-12 col666">{{item.createTime}}</div>
            </div>
            <div class="col666 fs-14">分类:{{item.typeName}}</div>
            <div class="w-80 h-30 br-15 rowsc rowsm fw-b fs-12" style="border: 1px solid #E33636;color: #E33636;">{{item.dfCount}}</div>
            <!-- <div class="w-80 h-30 br-15 rowsc rowsm fw-b fs-12" style="border: 1px solid #E33636;color: #E33636;">已通过</div> -->
        </div>
  </div>
</template>

<script>
export default {
  components: {},
  props: {
    type:{}
  },
  data() {
    return {
      list:[]
    };
  },
  watch: {},
  computed: {},
  methods: {
    choseItem(item){
      this.$emit('choseItem',item,0,1)
    },
    getList(){
      this.$axios.post('prold/listPass',{type:this.type}).then(res => {
        if(res.data.code != 200) return this.$notify({
          title: '提示',
          message: res.data.msg
        });
        let {rows} = res.data
        this.list = rows
      })
    }
  },
  created() {
    this.getList()
  },
  mounted() {}
};
</script>
<style lang="scss" scoped>
</style>